package com.sunyur.tailor.channel.web.outer.inventory.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName SunyurInventorySelectParam
 * @Description
 * @Author xuhui
 * @Date 2021/6/21 17:05
 * @Version 1.0
 */
@Data
public class InventorySelectDTO {
    /**
     * 物料编码
     */
    @NotBlank(message = "物料编码不能为空")
    private String materielCode;
    /**
     * 库存组织编码
     */
    @NotBlank(message = "库存组织编码不能为空")
    private String stockOrgCode;
    /**
     * 库存地点编码
     */
    @NotBlank(message = "库存地点编码不能为空")
    private String siteCode;
    /**
     * 公司主体编码
     */
    @NotBlank(message = "公司主体编码不能为空")
    private String purchaserSubjectCode;
    /**
     * 1--利旧物资,2--库存物资
     */
    @NotNull(message = "物资类型不能为空")
    private Integer materialType;

    public InventorySelectDTO(String materielCode, String stockOrgCode, String siteCode, String purchaserSubjectCode, Integer materialType) {
        this.materielCode = materielCode;
        this.stockOrgCode = stockOrgCode;
        this.siteCode = siteCode;
        this.purchaserSubjectCode = purchaserSubjectCode;
        this.materialType = materialType;
    }

    public InventorySelectDTO() {
    }
}
